package com.lc.luzhengtang.conn;

import android.util.Log;

import com.google.gson.Gson;
import com.lc.luzhengtang.bean.OrderListBean;
import com.zcx.helper.http.AsyCallBack;
import com.zcx.helper.http.note.HttpInlet;

import org.json.JSONObject;

/**
 * Created by Administrator on 2017/4/17.
 */
@HttpInlet(Conn.ORDER_LIST)
public class ConnOrderList extends BaseAsyPost<OrderListBean> {

    public String member_id;
    public String status;

    public ConnOrderList(String member_id, String status, AsyCallBack<OrderListBean> asyCallBack) {
        super(asyCallBack);

        this.member_id = member_id;
        this.status = status;

    }

    @Override
    protected OrderListBean parser(JSONObject object) throws Exception {
        Log.d(object.toString(), "aaaaaaaaaaaaaaaaa");

        Log.d(object.toString(), "aaaaaaaaaaaaaaaaa");

        Gson gson = new Gson();
        OrderListBean loginBean = new OrderListBean();
        loginBean = gson.fromJson(object.toString(), OrderListBean.class);
        return loginBean;
    }
}



